package com.lboyang.common.exception;


import com.lboyang.common.enums.RpcErrorMessageEnum;

/**
 * @Description:
 * @Date 2021/9/11 20:22
 * @author: A.iguodala
 */
public class RpcException extends RuntimeException {
    public RpcException(RpcErrorMessageEnum rpcErrorMessageEnum, String detail) {
        super(rpcErrorMessageEnum.getMessage() + ":" + detail);
    }

    public RpcException(String message, Throwable cause) {
        super(message, cause);
    }

    public RpcException(RpcErrorMessageEnum rpcErrorMessageEnum) {
        super(rpcErrorMessageEnum.getMessage());
    }
}
